<template>
	<view>
		<view class="uni-form-item uni-column">
		    <view class="title"><text class="uni-form-item__title">标题</text></view>
		    <view class="uni-input-wrapper">
		        <input class="uni-input" focus placeholder="" v-model="title" />
		    </view>
		</view>
		<view class="uni-form-item uni-column">
		    <view class="title"><text class="uni-form-item__title">内容</text></view>
		    <view class="uni-input-wrapper">
		        <input class="uni-input" focus placeholder="" v-model="content"/>
		    </view>
		
		</view>
		<navigator url="../index/index">
			<button type="primary" @click="submit1"> 提交 </button>
		</navigator>
	</view>
</template>

<script>
	import blog_data from "../../common/js/blogs.js"
	export default {
		data() {
			return {
					title:"",
					content:"",
					blogs:blog_data.blogs,
					
			}
		},
		methods: {
			submit1(){
				this.blogs.push({title:this.title,content:this.content})
			}
			
		}
	}
</script>

<style>

</style>
